#include "StdAfx.h"
#include "SgComposite.h"


CSgComposite::CSgComposite(void)
{
}

CSgComposite::~CSgComposite(void)
{
}

void CSgComposite::AddChild(CSgObject *child)
{
	m_children.push_back(child);
}

void CSgComposite::Render()
{
	for(std::vector< CSgPtr<CSgObject> >::iterator c=m_children.begin();   
		c != m_children.end();  c++)
	{
		(*c)->Render();
	}
}